module.exports = {
    entry: './entry', //入口文件
    output: {
        filename: 'bundle.js' //出口
    },
    devtool: 'source-map', //直接生成srouce-map
    module: {
        loaders: [{
            test: /\.css$/,
            loader: 'style-loader!css-loader'
        },
            {
            test:/\.less$/,
                loader:"style-loader!css-loader!less-loader"
        },
            {
                test:/\.(png|jpg|jpeg|svg|gif)$/,
                loader:"file-loader",
                query:{
                    name:'image/[name]-[hash:5].[ext]'
                }
            }
        ]
    }

};
